fromInteger

open fun fromInteger(x: Int): GenderType

Converts an integer code into the corresponding GenderType enum constant.

If the input integer does not match any predefined code, UNKNOWN is returned as a fallback.

Return

The corresponding GenderType, or UNKNOWN if no match is found.

Parameters

x

The integer code to convert.